package com.itheima.mapper;

import com.itheima.common.Com.ShoppingCart;
import com.itheima.common.vo.ShoppingCartDto;
import com.itheima.common.vo.ShoppingCartVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 86188
 */

@Mapper
public interface ShoppingCartMapper {

    List<ShoppingCart> getAll();

    boolean save(ShoppingCart shoppingCart);

    ShoppingCartVo findById(String id);

    boolean delete();

    boolean deleteId(ShoppingCartDto shoppingCartDto);

    ShoppingCart selectOne(@Param("name") String name);

    boolean update(ShoppingCart shoppingCartVo);

    ShoppingCart select(ShoppingCartDto shoppingCartDto);
}
